﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace RushTracker.Web.UI
{
    public abstract class RushTrackerViewPage : ViewPage
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (ViewData.ContainsKey("Title"))
            {
                Title = ViewData["Title"].ToString();
            }
        }
    }

    public abstract class RushTrackerViewPage<TModel> : ViewPage<TModel>
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (ViewData.ContainsKey("Title"))
            {
                Title = ViewData["Title"].ToString();
            }
        }
    }
}
